package com.sdutcm.Service.ServiceImpl;

/*
 *@Author Yan
 *@Create 2019-08-24 0:09
 */

import com.sdutcm.Domain.Student;
import com.sdutcm.Mapper.StudentMapper;
import com.sdutcm.Service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {


    @Autowired
    public StudentMapper studentMapper;

    @Override
    public void studentadd(Student student) throws Exception {
        studentMapper.studentadd(student);
    }

    @Override
    public List<Student> studentlist() throws Exception {
        return studentMapper.studentlist();
    }

    @Override
    public Student studentById(Integer s_id) throws Exception {
        return studentMapper.studentById(s_id);
    }

    @Override
    public void studentedit(Student student) throws Exception {
        studentMapper.studentedit(student);
    }

    @Override
    public List<Student> studentlist_his() throws Exception {
         return studentMapper.studentlist_his();
    }
}
